package com.qingchi.web.service;


import com.socialuni.api.feignAPI.SocialuniMockOAuthAPI;
import com.socialuni.api.feignAPI.SocialuniOAuthAPI;
import com.socialuni.social.sdk.entity.user.SocialUserPhoneEntity;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class MockOAuthService {
    @Resource
    SocialuniMockOAuthAPI socialuniMockOAuthAPI;
    @Resource
    SocialUserPhoneEntity socialUserPhoneEntity;
    @Resource
    SocialuniOAuthAPI socialuniOAuthAPI;


   /* public ResultRO<MineUserDetailRO> mockOAuthUserPhoneNum() {
        ResultRO<OAuthUserPhoneNumRO> resultRO = socialuniOAuthAPI.oAuthUserInfoAndPhoneNum();
        OAuthUserPhoneNumRO oAuthUserRO = resultRO.getData();

        UserDO mineUser = SocialUserUtil.getMineUserAllowNull();
        mineUser = socialUserPhoneEntity.checkPhoneNumAndCreateBind(mineUser, "86", oAuthUserRO.getPhoneNum());

        MineUserDetailRO mineUserDetailRO = MineUserDetailROFactory.getMineUser(mineUser);
        mineUserDetailRO.setPhoneNum(oAuthUserRO.getPhoneNum());
        return new ResultRO<>(mineUserDetailRO);
    }*/
}